//package org.jeecg.modules.power.rabbitmq.config;
//
//import org.jeecg.modules.power.rabbitmq.ExchangeList;
//import org.jeecg.modules.power.rabbitmq.QueueList;
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.Queue;
//import org.springframework.amqp.core.TopicExchange;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * 会员过期处理的消息队列
// * @author scw
// * @version v1.0
// * @date
// */
//@Configuration
//public class Member {
//    /**
//     * 1、声明交换机
//     * @return
//     */
//    @Bean
// 	public TopicExchange topicExchange(){
//		TopicExchange topicExchange=new TopicExchange(ExchangeList.student);
// 		return topicExchange;
// 	}
//
//    /**
//     * 声明队列
//     * @return
//     */
//    @Bean
//    public Queue queue() {
//        Queue queue=new Queue(QueueList.member);
//        return queue;
//    }
//
//    /**
//     * 3、binding将交换机和相应队列连起来
//     */
//    @Bean
//    public Binding bindingtopic1(){
//        Binding binding= BindingBuilder.bind(queue()).to(topicExchange()).with(ExchangeList.routingKey);//binding key
//        return binding;
//    }
//}
